import 'package:flutter/material.dart';
import 'package:qunaimedical/pages/attendance.dart';
import 'package:qunaimedical/pages/auth.dart';
import 'package:qunaimedical/pages/consultation.dart';
import 'package:qunaimedical/pages/consultation_records.dart';
import 'package:qunaimedical/pages/doctor_list.dart';
import 'package:qunaimedical/pages/favorite.dart';
import 'package:qunaimedical/pages/home.dart';
import 'package:qunaimedical/pages/login.dart';
import 'package:qunaimedical/pages/patient_manage/patient_add.dart';
import 'package:qunaimedical/pages/patient_manage/patient_list.dart';
import 'package:qunaimedical/pages/profile.dart';
import 'package:qunaimedical/pages/public_consultation_record_list.dart';
import 'package:qunaimedical/pages/sms_login.dart';

/// 页面路由映射表
class RouteMap {
  static final routes = <String, WidgetBuilder>{
    HomePage.routeName: (context) => HomePage(),
    LoginPage.routeName: (context) => LoginPage(),
    ConsultationPage.routeName: (context) => ConsultationPage(),
    DoctorListPage.routeName: (context) => DoctorListPage(),
    ConsultationRecordsPage.routeName: (context) => ConsultationRecordsPage(),
    SMSLoginPage.routeName: (context) => SMSLoginPage(),
    ProfilePage.routeName: (context) => ProfilePage(),
    AuthPage.routeName: (context) => AuthPage(),
    AttendancePage.routeName: (context) => AttendancePage(),
    PublicConsultationRecordListPage.routeName: (context) => PublicConsultationRecordListPage(),
    FavoritePage.routeName: (context) => FavoritePage(),
    PatientListPage.routeName: (context) => PatientListPage(),
    PatientAddPage.routeName: (context) => PatientAddPage(),
  };
}
